package com.jianggujin.test.module;

import com.jianggujin.modulelink.support.annotation.JIntercepts;
import com.jianggujin.modulelink.support.annotation.JOrder;
import com.jianggujin.modulelink.support.annotation.JSignature;
import com.jianggujin.modulelink.support.plugin.JAbstractInterceptor;
import com.jianggujin.modulelink.support.plugin.JInvocation;

@JOrder(5)
@JIntercepts({
        @JSignature(typeName = "com.jianggujin.modulelink.JAction", method = "execute", args = { Object.class }) })
public class Interceptor1 extends JAbstractInterceptor {
    @Override
    public Object intercept(JInvocation invocation) throws Throwable {
        System.out.println("插件1开始工作");
        return invocation.proceed();
    }
}